package com.hdu.dwh.dtos;

import jakarta.validation.constraints.Pattern;
import lombok.Data;

@Data
public class ModelDto {

    @Pattern(regexp = "^[a-z0-9_]+$", message = "name只能包含小写字母、数字和下划线，不能有'-'、大写字母或中文")
    private String name;
    private Integer projectId;
    private String description;
}